import { useEffect } from 'react';
import { Result, Spin } from 'antd';
import NProgress from 'nprogress'; // 进度条
import 'nprogress/nprogress.css'; // progress bar style

NProgress.configure({ showSpinner: false }); // NProgress Configuration

export default () => {
  useEffect(() => {
    NProgress.start();
    return () => {
      NProgress.done();
    };
  }, []);
  return <Result icon={<Spin size='large' />} />;
};
